﻿using Omabar.BLL;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Omabar.CMS.Mobile
{
    public partial class SpecialItemList : System.Web.UI.Page
    {
        protected List<SLIDER> specialItems;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Slider_BLL sliderBLL = new Slider_BLL();
                int pageNo = string.IsNullOrEmpty(Request["pageno"]) ? 1 : int.Parse(Request["pageno"]);

                string spiSQL = "SELECT  SLIDER_ID,SLIDER_IMAGE,SLIDER_URL,SLIDER_DES,SLIDER_SORT,SLIDER_TYPE,SLIDER_BAK FROM SLIDER WHERE SLIDER_TYPE=2 order by  SLIDER_SORT";
                specialItems = sliderBLL.GetModels(spiSQL);
                if (specialItems == null) specialItems = new List<SLIDER>();
            }
        }
    }
}